Backend.init   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
export default class Backend {
2
    constructor() {
3
        this.routes = [];
4
        this.security = [];
5
    }
6
7
    register(operationId, handler) {
8
        this.routes.push({
9
            operationId,
10
            handler,
11
        });
12
    }
13
14
    registerSecurityHandler(name, handler) {
15
        this.security.push({
16
            name,
17
            handler,
18
        });
19
    }
20
21
    init() {}
22
}
23